from vcloud import Client

AppKey = '6fc88bfd09b8938f19e3c29f271f7403'
AppSecret = 'c30a9d035f87'


client = Client(AppKey, AppSecret)

#上传初始化的请求包体参数
body = {"originFileName":"result.wav"}

#要上传文件的本地路径
localfile = './audio/result.wav'

res = client.upload_file(body, localfile)
print(res)

#查询视频的请求包体参数
body = {"objectNames":["result.wav"]}

res = client.query_id(body)
if res != None:
    print("client.query_id res : {0}".format(vars(res)))
else:
    print("query video error!")